//
//  Converter.m
//  TemperatureConverter
//
//  Created by Wang Shao-chuan on 2010/12/27.
//  Copyright 2010 National Taiwan University. All rights reserved.
//

#import "Converter.h"


@implementation Converter

-(float) celsius 
{
	return mCelsius;
}
-(void) setCelsius: (float) newC
{
	mCelsius = newC;
}
-(float) fahrenheit
{
	return mCelsius*9/5 + 32;
}
-(void) setFahrenheit: (float) newF
{
	mCelsius = (newF-32)*5/9; 
}
-(float) kelvin;
{
	return mCelsius + 273;
}
-(void) setKelvin: (float) newK
{
	mCelsius = newK - 273;
}
-(float) minCelsius
{
	return minCelsius;
}
-(float) minFahrenheit
{
	return minCelsius*9/5 + 32;
}
-(float) minKelvin
{
	return minCelsius+273;
}
-(float) maxCelsius
{
	return maxCelsius;
}
-(float) maxFahrenheit
{
	return maxCelsius*9/5 + 32;
}
-(float) maxKelvin
{
	return maxCelsius+273;
}

@end
